﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleAppPressureTest
{
    public static class ObjExtension
    {
        public static bool IsNullOrEmpty(this string str)
        {
            return string.IsNullOrEmpty(str) || str.Trim().Length == 0;
        }

        public static int ToInt(this string str)
        {
            int.TryParse(str, out int res);
            return res;
        }
    }
}
